package com.jie.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.jetbrains.annotations.NotNull;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 曾豪杰
 * @Date: 2022/09/11/17:53
 * @Description:分类
 */
@Data
@TableName("type")
public class Type {
    @TableId
    private Long id;//id
    @NotBlank(message = "分类名称不能为空")
    private String name;//名称
    @TableField(exist = false)
    private List<Blog> blogList;//博客列表
    public Type() {

    }
}
